/*
Copyright (c) 2010 Tomas Lindquist Olsen

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
#ifndef __LuaApplets_guitest_h__
#define __LuaApplets_guitest_h__

#include <cstdio>

namespace fltk
{
    class Widget;
    class Window;
}

struct lua_State;

// these are application helpers

int gui_wait_for_all(int argc, const char** argv);
void gui_default_callback(fltk::Widget* widget, void* data);

// these will be bound into lua

void gui_message(const char* s);
void gui_alert(const char* s);
int gui_ask(const char* s);

#define HINT_REMOVE 0
#define HINT_ADD    1
#define HINT_TOGGLE 2

extern const char* SKIP_TASKBAR_HINT;
extern const char* STICKY_HINT;
extern const char* ABOVE_HINT;
extern const char* BELOW_HINT;

void gui_apply_wm_hint(fltk::Window* wnd, const char* hint, int action);

int tolua_binding_Widget_callback00(lua_State* L);

#endif // __LuaApplets_guitest_h__
